<?php
namespace app\admin\model;

use think\Model;

class Information extends Model
{
    public function getStatusTurnAttr($value, $data)
    {
        $turnArr = [0=>lang('status0'), 1=>lang('status1')];
        return $turnArr[$data['status']];
    }
    public function treeList()
    {
        $list = $this->order('sorts ASC,id ASC')->paginate(3);
        foreach ($list as $k => $v){
            $v->arctypeMod;
        }
        return $list;
    }
}